﻿// -----------------------------------------------------------------------
// <copyright file="AmazonServiceElement.cs" company="EPAM Systems">
////Copyright (c) EPAM Systems, 2012. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace MBOP.Configuration.ConfigElements
{
	#region Usings

	using System.Configuration;

	#endregion

	/// <summary>
	/// Provides the amazon service settings from config file.
	/// </summary>
	public class AmazonServiceElement : ConfigurationElement
	{
		#region Properties

		/// <summary>
		/// Gets or sets the amazon security namespace
		/// </summary>
		[ConfigurationProperty("amazonSecurityNamespace", IsRequired = true)]
		public string SecurityNamespace
		{
			get
			{
				return (string)this["amazonSecurityNamespace"];
			}

			set
			{
				this["amazonSecurityNamespace"] = value;
			}
		}

		/// <summary>
		/// Gets or sets the access key id.
		/// </summary>
		[ConfigurationProperty("accessKeyId", IsRequired = true)]
		public string AccessKeyID
		{
			get
			{
				return (string)this["accessKeyId"];
			}

			set
			{
				this["accessKeyId"] = value;
			}
		}

		/// <summary>
		/// Gets or sets the secret key.
		/// </summary>
		[ConfigurationProperty("secretKey", IsRequired = true)]
		public string SecretKey
		{
			get
			{
				return (string)this["secretKey"];
			}

			set
			{
				this["secretKey"] = value;
			}
		}

		#endregion
	}
}